function main(params) {
    debugger;
    const self = this;
    const { type: level, id: regionId } = params.data;

    const pageTableList = self.$$("page_widget_list_bb0ouu");

    // 定义级别对应的查询字段映射
    const levelToFieldMap = {
        '1': "query_field_wrapper_9g2mlr", // 城市
        '2': "query_field_wrapper_iojoz",  // 区县
        '3': "query_field_wrapper_grpacc"  // 街道
    };

    const targetField = levelToFieldMap[level] || levelToFieldMap['3'];
    const allFields = Object.values(levelToFieldMap);

    // 重置所有字段
    allFields.forEach(fieldId => {
        const element = pageTableList.dataEngine.state.getElement(fieldId);
        if (element.data.members[0]) {
            element.data.members[0].props.defaultValue.value = null;
        }
    });

    // 设置目标字段值
    const targetElement = pageTableList.dataEngine.state.getElement(targetField);
    if (targetElement.data.members[0]) {
        targetElement.data.members[0].props.defaultValue.value = regionId;
    }

    // 执行查询
    pageTableList.dataEngine.state.getElement("condition_e50qv3").onQuery();
}
